<!DOCTYPE html>
<html lang="en">
    <include file="Public/head" />
<body data-type="widgets">
    <script src="__PUBLIC__/assets/js/theme.js"></script>
    <div class="am-g tpl-g">
        <!-- 头部 -->
    <include file="Public/header" />
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog">
            </div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">
                    选择主题
                </div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        
<include file="Public/left" />
        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">

            <div class="row-content am-cf">
                <div class="row">

                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                        <div class="widget am-cf">
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl"><h1 style="display:inline">管理比赛</h1><a href="addgame.html">添加比赛</a></div>
                            </div>
                            <div class="widget-body  widget-body-lg am-fr">

                                    <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                                        <thead>
                                            <tr>
                                                <th>比赛名称</th>
                                                <th>官网地址</th>
                                                <th>缩略图</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <volist name="game" id="vo">
                                            <tr class="gradeX">
                                                <td class="am-text-middle">{$vo.gamename}</td>
                                                <td class="am-text-middle">{$vo.web}</td>
                                                <td>
                                                    <img src="__PUBLIC__/photo/{$vo.pic}" class="tpl-table-line-img" alt="">
                                                </td>
                                                
                                                <td class="am-text-middle">
                                                    <div class="tpl-table-black-operation">
                                                        <a href="{:U('Home/game/editgame',array('gameid'=>$vo['gameid']))}">
                                                            <i class="am-icon-pencil"></i> 编辑
                                                        </a>
                                                        <a href="{:U('Home/game/delete',array('gameid'=>$vo['gameid']))}" class="tpl-table-black-operation-del">
                                                            <i class="am-icon-trash"></i> 删除
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>
                                            </volist>
                                        </tbody>
                                    </table>

                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
    </div>

    <include file="Public/bottom" />
</body>

</html>  